github.com/gotd/td/telegram/downloader.cdn.hashOffsets (field)
17 uses
github.com/gotd/td/telegram/downloader (current package)
cdn.go#L53: hashOffsets []int64
cdn_verify.go#L21: c.hashOffsets = nil
cdn_verify.go#L90: idx := sort.Search(len(c.hashOffsets), func(i int) bool {
cdn_verify.go#L91: return c.hashOffsets[i] >= hash.Offset
cdn_verify.go#L93: if idx == len(c.hashOffsets) {
cdn_verify.go#L94: c.hashOffsets = append(c.hashOffsets, hash.Offset)
cdn_verify.go#L95: } else if c.hashOffsets[idx] != hash.Offset {
cdn_verify.go#L96: c.hashOffsets = append(c.hashOffsets, 0)
cdn_verify.go#L97: copy(c.hashOffsets[idx+1:], c.hashOffsets[idx:])
cdn_verify.go#L98: c.hashOffsets[idx] = hash.Offset
cdn_verify.go#L116: if len(c.hashOffsets) == 0 {
cdn_verify.go#L121: idx := sort.Search(len(c.hashOffsets), func(i int) bool {
cdn_verify.go#L122: return c.hashOffsets[i] > offset
cdn_verify.go#L129: candidate, exists := c.hashes[c.hashOffsets[idx]]
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |